package com.chiaching.oms.service.impl;

import com.chiaching.oms.dao.OrderBaseDao;
import com.chiaching.oms.entity.OrderBaseEntity;
import com.chiaching.oms.service.OrderBaseService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chiaching.common.utils.PageUtils;
import com.chiaching.common.utils.Query;



@Service("orderBaseService")
public class OrderBaseServiceImpl extends ServiceImpl<OrderBaseDao, OrderBaseEntity> implements OrderBaseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderBaseEntity> page = this.page(
                new Query<OrderBaseEntity>().getPage(params),
                new QueryWrapper<OrderBaseEntity>()
        );

        return new PageUtils(page);
    }

}